package com.easy.demo.web.demo;

import com.easy.demo.domain.demo.DemoClass;
import com.easy.demo.service.demo.DemoClassService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author Administrator
 */
@RestController
@RequestMapping("/demo/class")
public class DemoClassServiceController {

    @Resource
    private DemoClassService demoClassService;

    @GetMapping("/list")
    public List<DemoClass> getDemoClassList() {
        return demoClassService.list();
    }
}
